Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Miscellaneous improvements in System #823

Merged
merged 1 commit into from
Oct 22, 2018
Merged

Conversation

terrajobst
Copy link
Member

@terrajobst terrajobst commented Jul 16, 2018

This also fixes #771 and fixed #539.

@dotnet/nsboard

@terrajobst terrajobst added the netstandard-api This tracks requests for standardizing APIs. label Jul 16, 2018
@terrajobst terrajobst added this to the .NET Standard vNext milestone Jul 16, 2018
@kumpera
Copy link

kumpera commented Jul 16, 2018

This is removing ISerializable from a bunch of exception types, what's the rationale for that?

@terrajobst
Copy link
Member Author

terrajobst commented Jul 17, 2018

This is removing ISerializable from a bunch of exception types, what's the rationale for that?

It was never intended to be on the derived types as the base type is implementing it.

@@ -89,7 +90,7 @@ public static partial class AppContext
public static void SetSwitch(string switchName, bool isEnabled) { }
public static bool TryGetSwitch(string switchName, out bool isEnabled) { isEnabled = default(bool); throw null; }
}
public sealed partial class AppDomain : System.MarshalByRefObject
public partial class AppDomain : System.MarshalByRefObject

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are the use cases for deriving from AppDomain? I don't see any problems with this from the Unity side, I'm just curious.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure. @weshaggard might know.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bug in .NET Core. AppDomain should have stayed sealed.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've fixed it here too

netstandard/ref/System.cs Outdated Show resolved Hide resolved
netstandard/ref/System.cs Outdated Show resolved Hide resolved
netstandard/ref/System.cs Outdated Show resolved Hide resolved
netstandard/ref/System.cs Show resolved Hide resolved
@terrajobst
Copy link
Member Author

All feedback should be resolved. Are we ready?

@terrajobst terrajobst changed the base branch from master-with-span to system-buffers October 16, 2018 02:53
@terrajobst terrajobst added the * NO MERGE * Applied to pull-requests that aren't ready to be merged yet. label Oct 16, 2018
@terrajobst
Copy link
Member Author

@joshpeterson this is the only one you haven't signed off on. Oversight? 😄 Thanks!

@joshpeterson
Copy link

@terrajobst: Yes, I just missed it. Thanks!

@terrajobst terrajobst requested a review from a team as a code owner October 22, 2018 16:51
@terrajobst terrajobst removed request for a team October 22, 2018 16:52
netstandard/ref/System.cs Outdated Show resolved Hide resolved
netstandard/ref/System.cs Outdated Show resolved Hide resolved
@terrajobst terrajobst changed the base branch from system-buffers to master October 22, 2018 18:09
@terrajobst terrajobst removed the * NO MERGE * Applied to pull-requests that aren't ready to be merged yet. label Oct 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
netstandard-api This tracks requests for standardizing APIs.
Projects
None yet